name: testsPCE run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin:/opt/pyenv/bin:/tmp/venv-j3ez/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 1493438076 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env PIP_EXTRA_INDEX_URL: https://gitlab.com/api/v4/projects/33090323/packages/pypi/simple env TOX_ENV_NAME: testsPCE env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE metadata pid: 31957 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin/*:launch_tests.sh cmd: ./launch_tests.sh pce exit_code: 1 pytest -q transportpce_tests/pce/test01_pce.py .................... [100%] 20 passed in 115.87s (0:01:55) pytest -q transportpce_tests/pce/test02_pce_400G.py ......... [100%] 9 passed in 42.10s pytest -q transportpce_tests/pce/test03_gnpy.py FFFFFFFF [100%] =================================== FAILURES =================================== ________________ TransportGNPYtesting.test_00_load_port_mapping ________________ self = def test_00_load_port_mapping(self): response = test_utils.post_portmapping(self.port_mapping_data) > self.assertIn(response['status_code'], (requests.codes.created, requests.codes.no_content)) E AssertionError: 401 not found in (201, 204) transportpce_tests/pce/test03_gnpy.py:118: AssertionError ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting GNPy REST server... starting OpenDaylight... starting KARAF TransportPCE build... Searching for pattern 'Transportpce controller started' in karaf.log... Pattern found! OpenDaylight started ! _______________ TransportGNPYtesting.test_01_connect_clliNetwork _______________ self = def test_01_connect_clliNetwork(self): response = test_utils.put_ietf_network('clli-network', self.topo_cllinet_data) > self.assertIn(response['status_code'], (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/pce/test03_gnpy.py:124: AssertionError ____________ TransportGNPYtesting.test_02_connect_openroadmNetwork _____________ self = def test_02_connect_openroadmNetwork(self): response = test_utils.put_ietf_network('openroadm-network', self.topo_ordnet_data) > self.assertIn(response['status_code'], (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/pce/test03_gnpy.py:129: AssertionError ____________ TransportGNPYtesting.test_03_connect_openroadmTopology ____________ self = def test_03_connect_openroadmTopology(self): response = test_utils.put_ietf_network('openroadm-topology', self.topo_ordtopo_data) > self.assertIn(response['status_code'], (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/pce/test03_gnpy.py:134: AssertionError ________ TransportGNPYtesting.test_04_path_computation_FeasibleWithPCE _________ self = def test_04_path_computation_FeasibleWithPCE(self): > response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) transportpce_tests/pce/test03_gnpy.py:139: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-pce', rpc = 'path-computation-request' payload = {'pce-routing-metric': 'hop-count', 'resource-reserve': 'true', 'service-a-end': {'clli': 'Node1', 'node-id': 'XPONDER-1', 'service-format': 'Ethernet', 'service-rate': '100'}, 'service-handler-header': {'request-id': 'request-1'}, ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-pce:output' transportpce_tests/common/test_utils.py:694: KeyError __ TransportGNPYtesting.test_05_path_computation_FoundByPCE_NotFeasibleByGnpy __ self = def test_05_path_computation_FoundByPCE_NotFeasibleByGnpy(self): self.path_computation_input_data["service-name"] = "service-2" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-2" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-2", "OpenROADM-3", "OpenROADM-4"]}} > response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) transportpce_tests/pce/test03_gnpy.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-pce', rpc = 'path-computation-request' payload = {'hard-constraints': {'include': {'node-id': ['OpenROADM-2', 'OpenROADM-3', 'OpenROADM-4']}}, 'pce-routing-metric': 'h..., 'service-a-end': {'clli': 'Node1', 'node-id': 'XPONDER-1', 'service-format': 'Ethernet', 'service-rate': '100'}, ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-pce:output' transportpce_tests/common/test_utils.py:694: KeyError ___ TransportGNPYtesting.test_06_path_computation_NotFoundByPCE_FoundByGNPy ____ self = def test_06_path_computation_NotFoundByPCE_FoundByGNPy(self): self.path_computation_input_data["service-name"] = "service-3" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-3" self.path_computation_input_data["service-z-end"]["node-id"] = "XPONDER-4" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-2", "OpenROADM-3"]}} > response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) transportpce_tests/pce/test03_gnpy.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-pce', rpc = 'path-computation-request' payload = {'hard-constraints': {'include': {'node-id': ['OpenROADM-2', 'OpenROADM-3']}}, 'pce-routing-metric': 'hop-count', 'res..., 'service-a-end': {'clli': 'Node1', 'node-id': 'XPONDER-1', 'service-format': 'Ethernet', 'service-rate': '100'}, ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-pce:output' transportpce_tests/common/test_utils.py:694: KeyError __ TransportGNPYtesting.test_07_path_computation_FoundByPCE_NotFeasibleByGnpy __ self = def test_07_path_computation_FoundByPCE_NotFeasibleByGnpy(self): self.path_computation_input_data["service-name"] = "service-4" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-4" self.path_computation_input_data["service-a-end"]["service-rate"] = "400" self.path_computation_input_data["service-z-end"]["service-rate"] = "400" self.path_computation_input_data["service-z-end"]["clli"] = "Node4" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-3", "OpenROADM-2", "OpenROADM-5"]}} > response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) transportpce_tests/pce/test03_gnpy.py:219: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-pce', rpc = 'path-computation-request' payload = {'hard-constraints': {'include': {'node-id': ['OpenROADM-3', 'OpenROADM-2', 'OpenROADM-5']}}, 'pce-routing-metric': 'h..., 'service-a-end': {'clli': 'Node1', 'node-id': 'XPONDER-1', 'service-format': 'Ethernet', 'service-rate': '400'}, ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-pce:output' transportpce_tests/common/test_utils.py:694: KeyError --------------------------- Captured stdout teardown --------------------------- all processes killed =========================== short test summary info ============================ FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_00_load_port_mapping FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_01_connect_clliNetwork FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_02_connect_openroadmNetwork FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_03_connect_openroadmTopology FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_04_path_computation_FeasibleWithPCE FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_05_path_computation_FoundByPCE_NotFeasibleByGnpy FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_06_path_computation_NotFoundByPCE_FoundByGNPy FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_07_path_computation_FoundByPCE_NotFeasibleByGnpy 8 failed in 21.49s